package com.yunzheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 郭思良
 * @create 2020-07-23 15:38
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "sys_user")
public class SysUser implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;

    /**
     * 手机号（账号）
     */
    @TableField(value = "user_phone")
    private String userPhone;

    /**
     * 真实姓名
     */
    @TableField(value = "realname")
    private String realname;

    /**
     * 性别(0男 1女 2未知)
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 用户状态：0正常（默认）1冻结 -1删除
     */
    @TableField(value = "user_status")
    private Integer userStatus;

    /**
     * 头像绝对路径
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 地址
     */
    @TableField(value = "location")
    private String location;

    /**
     * 生日
     */
    @TableField(value = "birthday")
    private String birthday;

    /**
     * 身份：1普通用户（默认）2系统管理员
     */
    @TableField(value = "user_identify")
    private Integer userIdentify;

    /**
     * 用户方向(1java 2js 3前端 4python 5综合 6无)
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 团队名
     */
    @TableField(value = "team")
    private String team;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USER_PHONE = "user_phone";

    public static final String COL_REALNAME = "realname";

    public static final String COL_GENDER = "gender";

    public static final String COL_USER_STATUS = "user_status";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_EMAIL = "email";

    public static final String COL_LOCATION = "location";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_USER_IDENTIFY = "user_identify";

    public static final String COL_TYPE = "type";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_TEAM = "team";
}
